package com.musemun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;
import javax.validation.constraints.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author winner
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Crlendifo对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class Crlendifo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文物编号")
    @Min(value = 0, message = "crNo不能为负数")
    @NotNull(message = "crNo不能为空")
    @TableField("crNo")
    private Long crNo;

    @ApiModelProperty(value = "外借方姓名")
    @TableField("LCName")
    @NotBlank(message = "姓名不能为空")
    @Size(min=1,max=15,message="姓名长度应在{min}-{max}")
    private String LCName;

    @ApiModelProperty(value = "外借起始日期")
    @TableField("LSDate")
    @NotNull(message = "LSDate不能为空")
    private Date LSDate;

    @ApiModelProperty(value = "外借归还日期")
    @TableField("LEDate")
    @Future(message = "归还时间必须大于当前时间")
    @NotNull(message = "LEDate不能为空")
    private Date LEDate;

    @ApiModelProperty(value = "备注")
    @TableField("Remarks")
    private String Remarks;


}
